package com.hackvan2012;
import java.io.IOException;

import javax.servlet.http.*;

import com.hackvan2012.api.YellowAPIService;

public class YellowAPIController extends HttpServlet {
	public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
		
		
		boolean sandbox = req.getParameter("sandbox").equals("true"); 
		YellowAPIService ys = new YellowAPIService(req.getParameterMap(), sandbox);
		String out = ys.call();
		resp.getWriter().write(out);
		
	}
}
